package com.patter.demo.command;

/**
 * @Author create by xcb 2023/1/31 10:59
 */
public class BuyStock implements Order {
    private final Stock abcStock;

    public BuyStock(Stock abcStock) {
        this.abcStock = abcStock;
    }

    @Override
    public void execute() {
        abcStock.buy();
    }
}
